package client

import "time"

type Goods struct {
	Id        uint      `gorm:"column:id;type:int(22);primaryKey;not null;" json:"id"`
	Name      string    `gorm:"column:name;type:varchar(200);not null;" json:"name"`
	Sum       string    `gorm:"column:sum;type:varchar(20);not null;" json:"sum"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	Price     float64   `gorm:"column:price;type:decimal(10, 2);default:NULL;" json:"price"`
}
